package com.itany.corejava.code08_常用类.枚举;

/**
 * @author MissChen
 * @version 1.0
 * @date 2023 年11月15日 15:51
 */
public class Test {
    public static void main(String[] args) {
        // Sport sport=new Sport("滑雪",SeasonConstant.WINTER);
        // Sport sport2=new Sport("游泳",SeasonConstant.SUMMER);
        // Sport sport3=new Sport("游泳","yyyy");
        // System.out.println(sport);
        // System.out.println(sport2);
        // System.out.println(sport3);

        Sport sport=new Sport("滑雪",Season.WINTER);
        Sport sport2=new Sport("游泳",Season.SUMMER);
        Sport sport3=new Sport("爬山",Season.AUTUMN);
        Sport sport4=new Sport("爬山",Season.ALL);
        System.out.println(sport);
        System.out.println(sport2);
        System.out.println(sport3);
        System.out.println(sport4);
        System.out.println(sport.getSeason().getName());

    }
}
